d595578e2b9d1d595b5dd3fe13e30ecb7fa031e5,app/src/main/java/com/github/yeriomin/yalpstore/CredentialsDialogBuilder.java,CheckCredentialsTask,onPostExecute,#Throwable#,121

Before Change


                        Toast.LENGTH_LONG
                    ).show();
                } else if (e instanceof IOException) {
                    Toast.makeText(
                        c.getApplicationContext(),
                        c.getString(R.string.error_network_other, e.getMessage()),
                        Toast.LENGTH_LONG
                    ).show();
                } else {
                    Log.w(getClass().getName(), "Unknown exception " + e.getClass().getName() + " " + e.getMessage());
                    e.printStackTrace();

After Change


                        toast(c, R.string.error_incorrect_password);
                    }
                } else if (e instanceof IOException) {
                    toast(c, R.string.error_network_other, e.getMessage());
                } else {
                    Log.w(getClass().getName(), "Unknown exception " + e.getClass().getName() + " " + e.getMessage());
                    e.printStackTrace();